import Rrequest from '@/util/Rrequest'

// 圈子列表
export async function circlelist(data) {
	return Rrequest({
		// url: '/boot/circle/select',
		// url: '/boot/circle/one/circle',
		url: '/boot/circle/one/circles',//接口数据未在组建中展示
		method: 'post',
		data: data
	})
}

export async function circlelist2(data) {
	return Rrequest({
		// url: '/boot/circle/select',
		url: '/boot/circle/community',
		method: 'post',
		data: data
	})
}

// 卡神列表
export async function circlelist3(data) {
	return Rrequest({
		url: '/boot/circle/select',
		// url: '/boot/circle/one/circle',
		method: 'post',
		data: data
	})
}
// 发布
export async function uploadfile(data) {
	return Rrequest({
		url: '/boot/circle/listByMe',
		method: 'post',
		data: data
	})
}

// 圈子点赞
export async function zan(data) {
	return Rrequest({
		url: '/boot/circleHitLike/create',
		method: 'post',
		data: data
	})
}

// 圈子取消点赞
export async function nzan(data) {
	return Rrequest({
		url: '/boot/circleHitLike/delete',
		method: 'post',
		data: data
	})
}

// 圈子作品详情
export async function file(params) {
	return Rrequest({
		url: '/boot/circle/detail',
		method: 'get',
		params: params
	})
}

// 视频评论 
export async function commentlist(data) {
	return Rrequest({
		url: '/boot/comment/list',
		method: 'post',
		data: data
	})
}


// 
export async function imgs(type) {
	return Rrequest({
		url: '/boot/banner/getBannerList/'+type,
		method: 'get',
	})
}
// 删除文章
export async function articledel(id) {
	return Rrequest({
		url: '/boot/circle/'+id,
		method: 'DELETE',
	})
}

// 置顶作品
export async function articletop(data) {
	return Rrequest({
		url: '/boot/circle/make/top',
		method: 'put',
		data:data
	})
}
// 取消置顶作品
export async function articlenotop(data) {
	return Rrequest({
		url: '/boot/circle/cancel/top',
		method: 'put',
		data:data
	})
}

